//
// Created by ziya on 2020/8/30.
//

#ifndef CPP_MEMORY_POOL_MEMORYPOOL_H
#define CPP_MEMORY_POOL_MEMORYPOOL_H

#include "common.h"
#include "MemoryChunk.h"

class MemoryPool {

private:
    list<MemoryChunk *> m_chunks;

public:
    MemoryPool();
    ~MemoryPool();

public:
    MemoryChunk* alloc(int size);

public:
    void CheckMemoryLeak();

};


#endif //CPP_MEMORY_POOL_MEMORYPOOL_H
